/** 当路由表太长时，可以将其拆分为小模块 **/

import Layout from 'views/layout/layout'

const myUserRouter = {
  path: '/myUser',
  component: Layout,
  redirect: 'noredirect',
  name: 'MyUser',
  meta: {
    title: 'myUser',
    icon: 'myUser',
    roles: ['demo']
  },
  children: [
    {
      path: 'storeMember',
      component: () => import('pages/myUser/storeMember/index'),
      redirect: 'noredirect',
      name: 'storeMember',
      meta: { title: 'storeMember' },
      children: [
        {
          path: 'myStoreMember',
          component: () => import('pages/myUser/storeMember/myStoreMember'),
          name: 'myStoreMember',
          meta: { title: 'myStoreMember' }
        },
        {
          path: 'salesmanManage',
          component: () => import('pages/myUser/storeMember/salesmanManage'),
          name: 'salesmanManage',
          meta: { title: 'salesmanManage' }
        },
        {
          path: 'supplierMemberCard',
          component: () => import('pages/myUser/storeMember/supplierMemberCard'),
          name: 'supplierMemberCard',
          meta: { title: 'supplierMemberCard' }
        }
      ]
    }
  ]
}

export default myUserRouter